package com.chenlonghai.sbmybatis.entity;

import java.util.Map;

public class AppModelTest<T> {
	private String msg;
	private String status;
	private T result;
	private Map<String, Object> resultMap;
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}



	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Map<String, Object> getResultMap() {
		return resultMap;
	}
	public void setResultMap(Map<String, Object> resultMap) {
		this.resultMap = resultMap;
	}
	
	public AppModelTest(T result,Map<String, Object> resultMap){
		super();
		if (result == null) {
			this.status = "faile";
			this.msg = "失败";
		}else{
			this.status = "success";
			this.msg = "成功";
		}
		this.result = result;
		this.resultMap = resultMap;
		this.resultMap.put("result", this.result);
		this.resultMap.put("status", this.status);
		this.resultMap.put("msg", this.msg);
	}
	public T getResult() {
		return result;
	}
	public void setResult(T result) {
		this.result = result;
	}

	

}
